package com.ruoyi.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 平台账号对象 tb_cust_user
 * 
 * @author ruoyi
 * @date 2021-04-26
 */
public class CustUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public CustUser(){}

    //test
    public CustUser(String userName,BigDecimal dj){
        SysUser user=new SysUser();
        user.setNum(dj);
        this.user=user;
        this.userName=userName;
    }

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String userName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String password;

    /** 是否主账号 0=子账号 1=主账号 */
    @Excel(name = "是否主账号 0=子账号 1=主账号")
    private String main;

    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setMain(String main) 
    {
        this.main = main;
    }

    public String getMain() 
    {
        return main;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getUserId())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("main", getMain())
            .toString();
    }
}
